const About = require("./modules/aboutModule");

//设置关于页面
const setAbout = async (url) => {
  await About.update(url, {
    where: {
      id: 1,
    },
  });

  return;
};

//获取关于页面
const getAbout = async () => {
  const data = await About.findAll();
  return JSON.parse(JSON.stringify(data));
};

module.exports = {
  setAbout,
  getAbout,
};
